package com.example.youhuo.mvp.presenter

import android.util.Log
import com.example.mvp.presenter.IPresenter
import com.example.myapplication.entity.Fenlei_Entity
import com.example.youhuo.entity.Banner_Entity

import com.example.youhuo.entity.BaseEntity
import com.example.youhuo.entity.Tab_Entity
import com.example.youhuo.mvp.contract.LjlContract
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers


class LjlPresenter : BasePresenter<LjlContract.LjlModel,LjlContract.LjlView>,IPresenter {
    constructor( mymodel: LjlContract.LjlModel, myview: LjlContract.LjlView): super(mymodel, myview)

        fun TabData(parames: ArrayList<Map<String,Any>>){
            var data = mymodel.getData(parames)
            data.subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(this)
        }


     override fun onNext(t: BaseEntity) {

       myview.showmsg(t)

     }

}